package org.example;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class IO_Dem25 {
    public static void main(String[] args) throws IOException {
        // 读取数据
        Properties p = new Properties();
        FileInputStream fis = new FileInputStream("D:\\Idea_xiangmu\\IdeaProjects\\Two_test\\a.properties");
        // 加载数据  load()作用是读取数据
        p.load(fis);
        fis.close();

        //打印集合
        System.out.println(p);
    }
}
